import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;


public class JsonTest {
	public static void main(String[] args) throws IOException {
		String city1 = "珠海市";
		String area1 = "香洲区";
		String area2 = "金湾区";
		String area3 = "斗门区";
		
		String city2 ="哈尔滨市";
		String area4 = "道里区";
		String area5 = "道外区";
		String area6 = "南岗区";
		
		List<String> list1 = new ArrayList<String>();
		list1.add(area1);
		list1.add(area2);
		list1.add(area3);
		
		List<String> list2 = new ArrayList<String>();
		list2.add(area4);
		list2.add(area5);
		list2.add(area6);
		
		Map<String,List<String>> data = new HashMap<String,List<String>>();
		data.put(city1, list1);
		data.put(city2, list2);
		
		
		ObjectMapper mapper = new ObjectMapper();
		
		String s =  mapper.writeValueAsString(data);
		Map m = mapper.readValue(s, Map.class);
		
		System.out.println(m);
	}
}
